<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <link href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <title>网上招聘系统</title>
</head>

<body>
<script type="text/javascript" src="js/jquery.js"></script>
<div class="container">
    <div class="row">
        <div id="head" style="padding-left:800px;padding-top: 30px ;height: 50px">
            <div><span>欢迎您,</span><a href="javascript:;">${person.username },</a> <span ><a style="color: red" href="/exit">退出</a></span></div>
        </div>
    </div>

    <div class="row">
        <div class="col-md-2" id="left">
            <!-- 目录部分 -->
            <ul class="nav nav-stacked">
                <li role="presentation"><a href="javascript:;" date-src="query.jsp"><span>首页</span></a></li>
                <li role="presentation"><a href="javascript:;" date-src="update.jsp" class="ue-clear"><span>个人信息修改</span></a></li>
                <li role="presentation"><a href="javascript:;" date-src="download.jsp" class="ue-clear"><span>个人简历</span></a></li>
                <li role="presentation"><a href="javascript:;" date-src="/publishInfo?type=个人" class="ue-clear"><span>发布简历</span></a></li>
                <li role="presentation"><a href="javascript:;" date-src="/cancelInfo?type=个人" class="ue-clear"><span>撤销简历</span></a></li>
                <li role="presentation"><a href="javascript:;" date-src="myCompany.jsp" class="ue-clear"><span>消息通知</span></a></li>
            </ul>
        </div>
        <div class="col-md-10" id="right">
            <!-- 显示部分 -->
            <div class="content">
                <iframe id="iframe" width="100%" height="100%" frameborder="0"></iframe>
            </div>

        </div>
    </div>



    <!--在主页上进行查询操作  -->
    <%
        if (request.getParameter("source") != null) {
    %>
    <script type="text/javascript">
        <!-- src -->
        $('#iframe').attr('src', 'query.jsp?source=listServlet');
    </script>
    <%
    } else {
    %>    <!--成功登录后，显示部分呈现出的是query.jsp页面  -->
    <script type="text/javascript">
        $('#iframe').attr('src', 'query.jsp');
    </script>
    <%
        }
    %>
</div>

<div class="exitDialog">
    <div class="dialog-content">
        <div class="ui-dialog-icon"></div>
        <div class="ui-dialog-text">
            <p class="dialog-content">你确定要退出系统？</p>
            <p class="tips">如果是请点击“确定”，否则点“取消”</p>

            <div class="buttons">
                <a href="exitServlet"><input type="button" class="button long2 ok" value="确定"/></a>
                <input type="button" class="button long2 normal" value="取消"/>
            </div>
        </div>

    </div>
</div>
</body>
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/core.js"></script>
<script type="text/javascript" src="js/jquery.dialog.js"></script>
<script type="text/javascript" src="js/index.js"></script>
</html>